import tpl from './index.tpl'
import './index.scss'
import { replaceTpl } from '../../libs/utils'
export default {
    name: 'Header',
    tpl(options) {
        const { url, title, showLeftIcon, showRightIcon } = options;
        return replaceTpl(tpl, {
            url,
            title,
            showLeftIcon: showLeftIcon ? 'block' : 'none',
            showRightIcon: showRightIcon ? 'block' : 'none'
        })
    }
}